package k.daimai.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 大麦商城-订单表-73
 * </p>
 *
 * @author k
 * @since 2025-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dm_orders")
@ApiModel(value="DmOrders对象", description="大麦商城-订单表-73")
public class DmOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号, 自增列")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "总金额")
    private Double total;

    @ApiModelProperty(value = "订单时间")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "状态: 0未支付,1已支付,2已发货,3已收货,4已评价,5已退货")
    private Integer state;

    @ApiModelProperty(value = "用户id")
    private Integer uid;

    @ApiModelProperty(value = "收货地址id: 关联 dm_address.id")
    private Integer aid;


}
